# # List-->Tuple
# list=[1,2,3]
# my_tuple=tuple[list]
# print(my_tuple)
# print(type(my_tuple))
#
# 列表转元组
# my_list = [1, 2, 3]
# my_tuple = tuple(my_list)
# print(my_tuple)  # 输出 (1, 2, 3)
# print(type(my_tuple))

# 元组转列表
# my_tuple = (1,2,3)
# my_list = list(my_tuple)
# print(my_list)
# print(type(my_list))

# 列表转集合
my_list = [1,2,3]
my_set = set(my_list)
# print(my_set)
# print(type(my_set))

#集合转列表
# my_set = {1，2，3}
# my_list = list(my_set)
# print(my_list)
# print(type(my_list))

#字典转列表
# my dict ={'a':1，'b': 2}
# my_list = list(my dict..items)
# print(my_list)
# print(type(my_list))
# 列表转字典
# my_list = [('a'，1)，('b'，2)]
# my_dict = dict(my_list)
# print(my_dict)
# print(type(my_dict))

# 字典转集合
# my_dict = {'a': 1,'b': 2}
# my_set = set(my_dict.items())
# print(my_set)
# print(type(my_set))
# 集合转字典
# my_set = {('a'，1)，('b'，2)}
# my_dict = dict(my_set)
# print(my_dict)
# print(type(my_list))
